package sunstar.com.xq.databean

import android.content.Context
import android.content.SharedPreferences
import com.google.gson.Gson
import sunstar.com.xq.util.Preference


/**
 * Created by Sun.Star on 2017/6/6.
 */
class PublicStaticBean {
    companion object{
        var sharePreference:SharedPreferences?=null
        var bmobApplicationId = "2e497930bfc9d9e84c3274a52a09b873"
        fun getUser (context: Context) : UserData {
            var userJson : String by Preference(context,"userData","")
            return Gson().fromJson(userJson,UserData::class.java)
        }
    }
}